<template>
  <div id="service">
    <div class="service_content">
      <div v-for="(item, index) in service" :key="index">
        <img :src="'../../../../../binbing/minePagePublic/hotPic' + item.img + '.webp'" />
        <span>{{ item.name }}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Service",
  data() {
    return {
      service: [
        {
          img: "01",
          name: "官方客服",
        },
        {
          img: "02",
          name: "服务商店",
        },
        {
          img: "03",
          name: "暖心服务",
        },
        {
          img: "04",
          name: "一口价换电池",
        },
        {
          img: "05",
          name: "补购保障",
        },
        {
          img: "06",
          name: "以旧换新",
        },
        {
          img: "07",
          name: "收货地址",
        },
        {
          img: "08",
          name: "预约记录",
        },
        {
          img: "09",
          name: "常见问题",
        },
      ],
    };
  },
};
</script>

<style scoped>
#service {
  height: 0.84rem;
  margin: 0.12rem 0.16rem 0.12rem;
  background-color: #fff;
  border-radius: 0.16rem;
  overflow-x: auto;
}
.service_content {
  height: 0.84rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service_content > div {
  height: 0.72rem;
  width: 0.85rem;
  flex-shrink: 0;
}
.service_content > div > img {
  width: 0.48rem;
  height: 0.48rem;
  display: block;
  margin: auto;
}
.service_content > div > span {
  display: block;
  padding: 0.04rem 0;
  text-align: center;
  font-size: 0.12rem;
  line-height: 0.16rem;
  font-weight: 400;
  opacity: 0.9;
}
</style>